package cn.edu.ujs.coor.common.exception;

import lombok.Data;

/**
 * 自定义异常
 *
 * @author  柳曾雄
 * @date 2018-07-16
 */
@Data
public class CoorException extends RuntimeException {

    private static final long serialVersionUID = 1L;

    private String code;

    public CoorException (String code, String message) {
        super(message);
        this.code = code;
    }

    public CoorException (String message) {
        super(message);
        this.code = "er_000002";
    }
}
